package com.shareach.domain;

import java.util.Set;

import org.springframework.data.mongodb.core.mapping.Document;

import com.shareach.domain.common.Bind;
import com.shareach.domain.common.Entity;

/**
 * 电话号码
 * 
 * @author zuoshuaiok@gmail.com
 * 
 *         2013-1-28
 */
@Document(collection = "baseTelephone")
public class BaseTelephoneDomain extends Entity {
	// 电话号码[不带区号] number+city 作为唯一标识
	private String number;
	// 归属城市[参见 城市 @BaseCityDomain
	private String city;
	// 商家库的Id
	private Long shopId;
	// 商户数
	private Integer shopCount;
	private Set<Bind> bind;

	// 0：正常
	// 1：名称可疑：如果采集的号码各网站名称不一致
	// 2：地址可疑：如果采集的号码各网站地址不一致
	private Integer status;

	public Set<Bind> getBind() {
		return bind;
	}

	public String getCity() {
		return city;
	}

	public String getNumber() {
		return number;
	}

	public Integer getShopCount() {
		return shopCount;
	}

	public Long getShopId() {
		return shopId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setBind(Set<Bind> bind) {
		this.bind = bind;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public void setShopCount(Integer shopCount) {
		this.shopCount = shopCount;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "BaseTelephoneDomain [number=" + number + ", city=" + city + ", shopId=" + shopId + ", bind=" + bind
				+ ", status=" + status + "]";
	}

}
